package com.itheima.netty.nio.test3;

import java.io.IOException;

public class TimeServer {
	
	public static void main(String[] args) throws IOException {
		int port = 8080;
		if(args != null && args.length >0){
			
			try {
				port = Integer.valueOf(args[0]);
			} catch (Exception e) {
				
			}		
		}
		MultiplexerTimeServer timeServer = new MultiplexerTimeServer(port);
		new Thread(timeServer, "NIO-MultiplexerTimeServer-001").start();
	}
}
